/**
 * 
 */
package com.hera.process.config.service.impl;

import java.util.List;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hera.base.util.FiltroDTO;
import com.hera.process.config.dao.DetailParameterDao;
import com.hera.process.config.domain.ParameterDetail;
import com.hera.process.config.service.DetailParameterService;

/**
 * @author cmontes
 *
 */
@Service("detailParameterService")
public class DetailParameterServiceImpl implements DetailParameterService {

	static final Logger logger = Logger.getLogger(DetailParameterServiceImpl.class);

	@Autowired
	private DetailParameterDao parameterDetailDao;
	/**
	 * 
	 */
	public DetailParameterServiceImpl() {
		
	}

	/* (non-Javadoc)
	 * @see com.hera.base.service.BaseService#findById(java.io.Serializable)
	 */
	@Override
	public ParameterDetail findById(Long id) {
		
		return null;
	}

	/* (non-Javadoc)
	 * @see com.hera.base.service.BaseService#update(java.io.Serializable)
	 */
	@Override
	public void update(ParameterDetail entity) {
		
		parameterDetailDao.save(entity);

	}

	/* (non-Javadoc)
	 * @see com.hera.base.service.BaseService#save(java.io.Serializable)
	 */
	@Override
	public void save(ParameterDetail entity) {
		
		parameterDetailDao.save(entity);
	}

	/* (non-Javadoc)
	 * @see com.hera.base.service.BaseService#delete(java.io.Serializable)
	 */
	@Override
	public void delete(ParameterDetail entity) {
		
		parameterDetailDao.delete(entity);
	}
	
	@Override
	public List<ParameterDetail> findAll() {
		
		return parameterDetailDao.findAll();
	}

	/* (non-Javadoc)
	 * @see com.hera.base.service.BaseService#findAll()
	 */
	@Override
	public List<ParameterDetail> findAll(FiltroDTO filtroDTO) {
		
		return parameterDetailDao.obtenerEntidadesPorFiltros(filtroDTO);
	}

	@Override
	public List<ParameterDetail> findByIdParameter(Long idParameter) {
		
		return parameterDetailDao.findByParameterIdParameter(idParameter);
	}

}
